package cn.oyjg.base.util;

import java.io.Serializable;

public class ResultFlag implements Serializable {

	private static final long serialVersionUID = 10001L;

	/**
	 * 返回标志 false:失败标志 , true:成功标志
	 */
	private Boolean flag = false;

	/**
	 * 返回消息
	 */
	private String msg = "";

	/**
	 * 返回数据
	 */
	private Object data;

	public ResultFlag() {
		super();
	}

	public ResultFlag(Boolean flag) {
		super();
		this.flag = flag;
	}

	public ResultFlag(String msg) {
		super();
		this.msg = msg;
	}

	public ResultFlag(Boolean flag, String msg) {
		super();
		this.flag = flag;
		this.msg = msg;
	}

	public ResultFlag(Boolean flag, Object data) {
		super();
		this.flag = flag;
		this.data = data;
	}

	public Boolean getFlag() {
		return flag;
	}

	public void setFlag(Boolean flag) {
		this.flag = flag;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public ResultFlag(Boolean flag, String msg, Object data) {
		super();
		this.flag = flag;
		this.msg = msg;
		this.data = data;
	}

	
}
